package com.nzy.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("nzy-stock")
public interface StockFeignService {


    @GetMapping("/stock/queryStock")
    public String getStock(@RequestParam(name = "skuId") String skuId);

    @PostMapping("/stock/create")
    public String createStock(@RequestParam(name = "skuId") String skuId,
                              @RequestParam(name = "stock") Integer stock,
                              @RequestParam(name = "appId") String appId);

}
